<%#= highlighter :style => "zenburn" %>
<%= render :partial => "shared/code_necessary" %>
<% @articles.each do |article| %>

<!-- post -->
		    <div id="post-6" class="post-6 post hentry category-important-news category-things tag-computers tag-fusion tag-ssd">
		      
		      <h3 class="title">
		      	<%= link_to(article.title,{:controller => "articles",:action => "show",:id => article.permalink},{:title => article.title}) %>
	      	</h3>
		      
		      <!-- story header -->
		      <div class="postheader">
			<div class="postinfo">
			  <p>Posted by <%= link_to("Neo",{:controller => "articles",:action => "show",:id => article.permalink},{:title => article.title}) %> in 
        <%= article.categories.collect{|e|e.name}.join(",") %>
			  	 on <%= article.created_at.to_s(:db) %> 
			  </p>
			</div>
		      </div>
		      <!-- /story header -->
		      
		      <div class="postbody entry clearfix">
							<%= article.content.bbcode_to_html %>
		      </div>
		      <br/>
		      <p class="tags">
    <%= article.categories.collect{|category| link_to(category.name,category_path(category))}.join(",") %>
		      </p>
		      <p class="postcontrols">
		      	<%= link_to "#{article.comments.count}条评论","/articles/#{article.permalink}#comments" %>
		      </p>
		      <div class="clear"></div>
		    </div>
		    <!-- /post -->
  <% end %>		    
  <div class="pagination">
  <span>
    <%= will_paginate @articles,:inner_window => 2,:outer_window => 0,:class => "",:container => false %>				
  </span>
</div>
